﻿using System;
using System.Collections.Generic;
namespace _1._3DStructurePoint
{
    class MainProgram
    {
        static void Main()
        {

            Console.WriteLine(Point3D.center);
            Point3D pointOne = new Point3D(11, 31, 31);
            Point3D pointTwo = new Point3D(111, 331, 1);
            Point3D pointThree = new Point3D(23, 3231, 1);
            Point3D pointFour = new Point3D(1, 3, 3);
            Console.WriteLine(pointOne);
            Console.WriteLine(DistancePts.DistanceBetweenPts(pointOne, pointThree));
            Console.WriteLine(DistancePts.DistanceBetweenPts(pointTwo, pointFour));

            Path pathOne = new Path();
            pathOne.AddPoint(pointOne);
            pathOne.AddPoint(pointTwo);
            pathOne.AddPoint(pointThree);
            pathOne.AddPoint(pointFour);
            PathStorage.savePath(pathOne);
          // PathStorage.LoadPath();
            Path loadedPath = PathStorage.LoadPath();//new Path();
            //loadedPath = 
            foreach (Point3D point in loadedPath.PathOfPts)
            {
                Console.WriteLine(point);
            }
        }
    }
}
